﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace ExpressionBuilder
{
	static class AssemblyExtensions
	{
		public static bool IsFrameworkAssembly(this Assembly assembly)
		{
			var name = assembly.ManifestModule.Name;
#if !PocketPC
			return (name.StartsWith("mscorlib") || name.StartsWith("System.")) && assembly.GlobalAssemblyCache;
#else
			return (name.StartsWith("mscorlib") || name.StartsWith("System."));
#endif
		}
	}
}
